package com.situ.day7;

public class Person {
	protected int id;
	protected String name;
	protected int age;
	
	public Person() {
		// 调用父类无参构造方法，这个可以不写，不写默认也会给我们加上
		super();
	}

	public Person(int id, String name, int age) {
		super();
		this.id = id;
		this.name = name;
		this.age = age;
	}

	public void show() {
		System.out.println("Person.show()");
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
}
